package ru.simplemaps.osmapi;

import junit.framework.TestCase;
import org.apache.http.impl.client.DefaultHttpClient;
import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;

/**
 * @author enaku_adm
 * @since 30.07.2010 13:51:23
 */
public class OSMServiceTestCase extends TestCase {
//        return "http://api.openstreetmap.org/api/0.6/map?bbox=37.6648442,55.7769297,37.6795834,55.791501899999995";


    public void testService() throws IOException, SAXException, ParserConfigurationException {
        OSMService service = new OSMService(new DefaultHttpClient());
        OSMData data = service.loadData(37.6648442, 55.7769297, 37.6795834, 55.791501899999995);
        System.out.println(data);
    }
}
